import api from './index';

export const loginApi = {
	login: (data, cb) => {
		api('/Home/Login', data, 'POST').then(cb);
	},
	register: (data, cb) => {
		api('/Home/Register', data, 'POST').then(cb);
	},
	sendCode: (data, cb) => {
		api('/Home/SendCode', data).then(cb);
	}
};
